package com.ruoyi.transaction.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 常见问题：用于展示用户常见问题及解决方案对象 common_questions
 * 
 * @author yzm
 * @date 2025-08-07
 */
public class YZMCommonQuestions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问题ID，主键 */
    private Integer id;

    /** 问题分类，如订单问题、账户问题等 */
    @Excel(name = "问题分类，如订单问题、账户问题等")
    private Integer category;

    /** 问题标题 */
    @Excel(name = "问题标题")
    private String questionTitle;

    /** 问题详细描述 */
    @Excel(name = "问题详细描述")
    private String questionDescription;

    /** 通用解决方案 */
    @Excel(name = "通用解决方案")
    private String answer;

    /** 排序（越小越靠前） */
    @Excel(name = "排序", readConverterExp = "越=小越靠前")
    private Integer sort;

    /** 状态（1启用，0禁用） */
    @Excel(name = "状态", readConverterExp = "1=启用，0禁用")
    private Integer status;

    /** 删除标志（0代表未删除，1代表已删除） */
    private String delFlag;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setCategory(Integer category) 
    {
        this.category = category;
    }

    public Integer getCategory() 
    {
        return category;
    }

    public void setQuestionTitle(String questionTitle) 
    {
        this.questionTitle = questionTitle;
    }

    public String getQuestionTitle() 
    {
        return questionTitle;
    }

    public void setQuestionDescription(String questionDescription) 
    {
        this.questionDescription = questionDescription;
    }

    public String getQuestionDescription() 
    {
        return questionDescription;
    }

    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("category", getCategory())
            .append("questionTitle", getQuestionTitle())
            .append("questionDescription", getQuestionDescription())
            .append("answer", getAnswer())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
